package com.gifts.ui.page.selectaProduct;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

import com.gifts.ui.page.common.JThumbnailPanel;
/**
 * Displaying product panel
 * @author kevin
 *
 */
public class JListProductsPanel extends JPanel {
	
	private  JThumbnailPanel thumbnailPanel;
	
	private JFilterPricePanel filterPricePanel;
	
	
	
	public JListProductsPanel() {
		setBorder(BorderFactory.createTitledBorder("Gift Suggestions"));
		BoxLayout layout = new BoxLayout(this, BoxLayout.X_AXIS);
		setLayout(layout);
		
		
		JPanel jpanel = new JPanel();
		FlowLayout gridLayout = new FlowLayout();
	
		BorderLayout borderLayout = new BorderLayout();
		
		jpanel.setLayout(borderLayout);
		filterPricePanel = new JFilterPricePanel();
		thumbnailPanel = new JThumbnailPanel(380,filterPricePanel.getShowMoreButton());
		
		
		//searchPanel.setSize(100, 50);
		jpanel.add(filterPricePanel,BorderLayout.NORTH);
		jpanel.add(thumbnailPanel,BorderLayout.CENTER);
		
		add(jpanel);
		
		
		
	}
	
	public JThumbnailPanel getJThumbnailPanel() {
		return thumbnailPanel;
	}
	
	public JFilterPricePanel getJSearchPanel() {
		return filterPricePanel;
	}

}
